import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.res.painterResource

/**
 * @author ldh
 * 时间: 2022/10/13 17:56
 * 邮箱: 2637614077@qq.com
 */

@Composable
fun Image(src: String) {
    androidx.compose.foundation.Image(
        modifier = Modifier.fillMaxWidth(),
        painter = painterResource(src),
        contentDescription = null,
        contentScale = ContentScale.Crop,
    )

}